package com.example.test.support;


import android.app.Application;

import com.example.test.BuildConfig;


/**
 * 网络请求信息实现类
 */
public class NetworkRequestInfo implements INetworkRequiredInfo {
    private Application application;
    public NetworkRequestInfo(Application application){
        this.application = application;
    }

    @Override
    public String getAppVersionName() {
        return BuildConfig.VERSION_NAME;
    }

    @Override
    public String getAppVersionCode() {
        return String.valueOf(BuildConfig.VERSION_CODE);
    }

    @Override
    public boolean isDebug() {
        return BuildConfig.DEBUG;
    }

    @Override
    public Application getApplicationContext() {
        return application;
    }

    @Override
    public String getBaseUrl() {
        return BuildConfig.BASE_URL;
    }

    @Override
    public String getPort() {
        return BuildConfig.PORT;
    }

}
